package com.buddy.sds.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.buddy.sds.common.BaseEntity;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("t_system_permission")
public class SystemPermission  implements BaseEntity {

    @TableId(type = IdType.UUID)
    private String permissionId;

    /**
     * 权限名称
     */
    private String permissionName;

    /**
     * action的url  组件的path
     */
    private String permissionUrl;

    /**
     * 权限描述
     */
    private String permissionDesc;

    /**
     * 父级id
     */
    private String permissionPid;

    /**
     * 权限类型
     */
    private PermissionTypeEnum permissionType;

    /**
     * 权限关键字
     */
    private String permissionKey;

    /**
     * 针对菜单 是否显示
     */
    private boolean permissionVisible;

    /**
     * 排序id
     */
    private int permissionOid;

    /**
     * 是否忽略权限
     */
    private boolean permissionIgnore;

    /**
     * 是否是首页
     */
    private boolean permissionHomepage;

    /**
     * 创建时间
     */
    private LocalDateTime permissionCreatetime;

    /**
     * 图标
     */
    private String permissionIcon;


}
